import com.atshiyou.bean.Student;
import com.atshiyou.dao.StudentDao2;
import com.atshiyou.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TestLike {
    public static void main(String[] args) {
        SqlSession session = SqlSessionUtil.getSession();
        StudentDao2 studentDao2 = session.getMapper(StudentDao2.class);
        Map map = new HashMap<>();
        map.put("stuname","哈哈");
        map.put("stuid",8);
//        List<Student> studentList= studentDao2.findd(map);
        Student student = new Student();
        student.setStuName("哈哈");
        student.setStuId(10);
        List<Student> studentList = studentDao2.finde(student);
        System.out.println(studentList);
    }
}
